﻿using ChuanYe.CountyFireManagement.EF.MySQL;
using ChuanYe.CountyFireManagement.EF.MySQL.Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace ChuanYe.CountyFireManagement.BLL
{
    public  class Sys_ResetBLL
    {
        #region 构造单例
        private Sys_ResetBLL() { }
        private static Sys_ResetBLL _instance;
        public static Sys_ResetBLL Instance
        {
            get
            {
                return _instance ?? (_instance = new Sys_ResetBLL());
            }
        }
        #endregion

        public void InitDatabseSystem()
        {
            using (CountyFireManagementContext ef = new CountyFireManagementContext())
            {
                ef.Database.EnsureCreated();
                ef.SaveChanges();
            }
        }
    }
}
